package com.ruoyi.project.gxgw_modules.clue.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.gxgw_modules.clue.mapper.ClueMapper;
import com.ruoyi.project.gxgw_modules.clue.domain.Clue;
import com.ruoyi.project.gxgw_modules.clue.service.IClueService;
import com.ruoyi.common.support.Convert;

/**
 * 线索记录 服务层实现
 * 
 * @author ruoyi
 * @date 2019-01-21
 */
@Service
public class ClueServiceImpl implements IClueService 
{
	@Autowired
	private ClueMapper clueMapper;

	/**
     * 查询线索记录信息
     * 
     * @param clueId 线索记录ID
     * @return 线索记录信息
     */
    @Override
	public Clue selectClueById(Integer clueId)
	{
	    return clueMapper.selectClueById(clueId);
	}
	
	/**
     * 查询线索记录列表
     * 
     * @param clue 线索记录信息
     * @return 线索记录集合
     */
	@Override
	public List<Clue> selectClueList(Clue clue)
	{
	    return clueMapper.selectClueList(clue);
	}
	
    /**
     * 新增线索记录
     * 
     * @param clue 线索记录信息
     * @return 结果
     */
	@Override
	public int insertClue(Clue clue)
	{
	    return clueMapper.insertClue(clue);
	}
	
	/**
     * 修改线索记录
     * 
     * @param clue 线索记录信息
     * @return 结果
     */
	@Override
	public int updateClue(Clue clue)
	{
	    return clueMapper.updateClue(clue);
	}

	/**
     * 删除线索记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteClueByIds(String ids)
	{
		return clueMapper.deleteClueByIds(Convert.toStrArray(ids));
	}
	
}
